<?php
class Cart extends EnhancedModel {
    static $attr_protected = array("id");

    static $belongs_to = array(
        array('book','select' => 'id, isbn, price, title, description,
            on_stock,category_id,created_at,updated_at' ),
        array('user','select' => 'id, name, email')
    );
}
?>
